export const searchItemList: Array<SuperSearch.SearchItem> = [
  {
    type: "input",
    label: "仓库代码",
    keyName: "warehouseCode"
  },
  {
    type: "input",
    label: "邮编",
    keyName: "zipCode"
  },
  {
    type: "select",
    label: "状态",
    keyName: "status",
    optConfig: {
      label: "label",
      value: "value"
    },
    options: [
      {
        label: "启用",
        value: 1
      },
      {
        label: "停用",
        value: 0
      }
    ]
  },
  {
    type: "select",
    label: "仓库类型",
    keyName: "warehouseType",
    optConfig: {
      label: "label",
      value: "value"
    },
    options: [
      {
        label: "亚马逊",
        value: "AMAZON"
      },
      {
        label: "沃尔玛",
        value: "WALMART"
      }
    ]
  },
  {
    type: "dict-select",
    label: "仓库属性",
    keyName: "warehousePropertyList",
    lookupCode: "WAREHOUSE_PROPERT",
    optConfig: {
      label: "name",
      value: "name"
    },
    attrs: {
      mode: "multiple"
    },
    options: []
  }
];

// 列表
export const tableColumn: Array<SuperTable.TableCoulmnItem | SuperTable.NestTableColumnItem> = [
  {
    field: "warehouseType",
    title: "仓库类型",
    minWidth: "120",
    renderSlot: "warehouseType"
  },
  {
    field: "warehouseProperty",
    title: "仓库属性",
    minWidth: "120"
  },
  {
    field: "warehouseCode",
    title: "仓库代码",
    minWidth: "140"
  },
  {
    field: "region",
    title: "国家或地区",
    minWidth: "120"
  },
  {
    field: "city",
    title: "城市",
    minWidth: "120"
  },
  {
    field: "state",
    title: "州",
    minWidth: "120"
  },
  {
    field: "zipCode",
    title: "邮编",
    minWidth: "120"
  },
  {
    field: "address",
    title: "地址一",
    minWidth: "120"
  },
  {
    field: "addressTwo",
    title: "地址二",
    minWidth: "120"
  },
  {
    field: "addressThree",
    title: "地址三",
    minWidth: "120"
  },
  {
    field: "receiverName",
    title: "收件人",
    minWidth: "120"
  },
  {
    field: "receiverPhone",
    title: "联系电话",
    minWidth: "120"
  },
  {
    field: "status",
    title: "状态",
    minWidth: "90",
    renderSlot: "status"
  },
  {
    field: "action",
    title: "操作",
    minWidth: "180",
    renderSlot: "action"
  }
];
